-
Notifications
You must be signed in to change notification settings - Fork 589
HDDS-8734. OM DB cache metrics creation should be idempotent #4805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@sumitagrawl @ChenSammi - pls review |
sumitagrawl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devmadhuu thanks working over this, plz add some test case for this
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @devmadhuu for working on this.
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
Outdated
Show resolved
Hide resolved
|
@DaveTeng0 - pls review for acceptance test impact |
|
Thanks @devmadhuu for updating the patch. |
|
@devmadhuu acceptance test failure is unrelated, already encountered the same on |
Thanks @sumitagrawl for reviewing. I have added the test case. Pls re-review. |
Thank you @adoroszlai for review. |
sumitagrawl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
|
@adoroszlai - Pls re-review and if all looks good, pls merge. |
|
@adoroszlai As part of #4678 , I have fixed the test case can you review this. |
What changes were proposed in this pull request?
When a cache metrics being registered for any OM DB table, it should check if cache metrics already registered or not. If it is already registered, then we should unregister first and allow registration.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8734
How was this patch tested?
This patch was tested using existing unit test cases including initialisation of new snapshot OM DB in Recon and do registration of cache metrics tables.